import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/boss/login',
    method: 'post',
    headers: {
      isToken: false
    },
    data: data
  })
}

export function getInfo(token) {
  return request({
    url: '/getInfo',
    method: 'get',
    params: { token }
  })
}
export function LoginLogout() {
  return request({
    url: '/boss/logout',
    method: 'post'
  })
}
